org.eclipse.vtp.desktop.core.actions.util
Class ProvisioningModelActionManager
java.lang.Object
org.eclipse.vtp.desktop.core.actions.util.ProvisioningModelActionManager
- All Implemented Interfaces:
- InternalActionItemContainer
public class ProvisioningModelActionManager
- extends java.lang.Object
- implements InternalActionItemContainer
- Version:
- 1.0
- Author:
- Trip
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProvisioningModelActionManager
public ProvisioningModelActionManager()
addActionItem
public boolean addActionItem(InternalActionItem actionItem)
- Description copied from interface:
InternalActionItemContainer
- Adds the given action item to the list of items contained
in this sub-menu.
- Specified by:
addActionItem in interface InternalActionItemContainer
- Parameters:
actionItem - The item to add.
- Returns:
true if the action was added, false
if another action with the same name is already contained
addSection
public boolean addSection(InternalActionSetSection section)
findContainer
public InternalActionItemContainer findContainer(java.util.Stack ids)
- Description copied from interface:
InternalActionItemContainer
- Locates the container with the given set of ids. The ids are
listed in parent first order. If the current id matches this
container, the id is removed and the next id is matched against
it's children. If a matching child is found the remaining ids
are passed to the child container's implementation of this
function.
- Specified by:
findContainer in interface InternalActionItemContainer
- Parameters:
ids - A Stack of id strings
- Returns:
- The container with the given id and heritage
loadExtensionPoint
public void loadExtensionPoint(java.lang.String extensionPointId)
selectionChanged
public void selectionChanged(IProvisioningModelSelection selection)
fillContextMenu
public void fillContextMenu(org.eclipse.jface.action.IMenuManager menuManager)
- Description copied from interface:
InternalActionItemContainer
- Adds this containers actions and child containers to the given
menu manager. All enabled and disable actions are added. Any
action with the absent state are skipped.
- Specified by:
fillContextMenu in interface InternalActionItemContainer